<script type="text/javascript">
$(function(){
	$(".nav li:eq(3)").addClass("nav-li-hover");
	
	$("#submitDiv").dialog({
		autoOpen:false,
		width:400,
		modal:true,
		show:"slide",
		buttons: {
	    	'Cancel': function() {
				$(this).dialog('close');
			 }
		}
	});
	
	$("#operate-tip").dialog({
		autoOpen:false,
		modal:true,
		width:300,
		show:"slide",
		buttons:{
			"Close":function(){
				$(this).dialog("close");
			}
		}
	});
	
});

function openSubmitbox(){
	$("#returned-msg").empty();
	$("#submitDiv").dialog("open");
}


function clear(){
	$('[name=verifyCode]').val('');
	$('[name=email]').val('');
}

function refreshVerifyCode(){
	var imgSrc='/merchant/index/verifycode/'+Math.random()+'/';
	var obj = document.getElementById('imgVerifyCode');
	obj.src = imgSrc;
}

</script>
<style type="text/css">
div.register-page-box{
	float:left;
}
div#register-page-info{
	float:left;
}
</style>

<div class="content" id="content1" style="display:block">
	<h2>我的账户</h2>
	<h4>把订单发给我们处理..</h4>
	
	<div class="register-page-box" style="width:420px;">
		<p><span class="bold">如果您已经是会员,请在这里登录.</span></p>
       	<h2>会员登录</h2>
      	
       	<div class="register-page-box-body">
            <{if isset($message)}><span style="color:red;font-weight:bold;"><{$message}></span><{/if}>
			<form method="post" action="/merchant/index/login">
            	<ul>
                	<li><span class="width3">E-mail:</span><input type="text"  class="register-page-box-input" name="loginEmail"/>
                		<div class="register-page-box-des">For example: admin@admin.com</div>
                	</li>
                
                	<li><span class="width3">密码:</span><input type="password" class="register-page-box-input" name="password"/>
                		<div class="register-page-box-des">请输入密码</div>
                	</li>
                
                	<li class="text-center">
                		<input type="image" src="/images/login.png" />
                		<div style="color:red;font-size:12px;cursor:pointer;" onclick="openSubmitbox()">忘记密码?</div>
                	</li>
                </ul>
         	</form>
		</div>

	</div><!-- class="register-page-box"  -->

	<div id="register-page-info" style="width:400px;border-left: 1px solid #ccc;padding-left:40px;">
        <p><span class="bold">如果您还不是会员,只须两步,您就可以拥有仓储服务</span></p>
        <{include file="default/index/register-box.tpl"}>
        <div class="register-box">
            <div class="register-box-top"></div>
            <div class="register-box-content">
                <div class="bold blue"><h2>注册会员</h2></div>
                <form action="" method="post" id="registerForm">
                    <div class="error"> </div>
                    <ul class="register-box-ul">
                        <li><label><span>Email:</span>
                            <input type="text" class="register-box-input" name="customerEmail" value="<{if isset($row.customer_email)}><{$row.customer_email}><{/if}>"/>
                        </label><br />
                            <div class="register-box-tip">例: admin@abc.com</div>
                        </li>

                        <li><label><span>密码:</span>
                            <input type="password" class="register-box-input" name="password" value="<{if isset($row.customer_password)}><{$row.customer_password}><{/if}>"/>
                        </label><br />
                            <div class="register-box-tip">6至18位的字母或数字</div>
                        </li>

                        <li><label><span><span style="position:absolute; top:-3px;">确认密码:</span></span>
                            <input type="password" class="register-box-input" name="rePassword" value="<{if isset($row.rePassword)}><{$row.rePassword}><{/if}>"/>
                        </label><br />
                            <div class="register-box-tip">请重新输入您的密码</div>
                        </li>
                    </ul>
                    <div class="text-center">
                        <input type="image" src="/images/sign-up-now.png" onclick="submitRegForm(1);return false;" title="提交注册" name="sbt"/>
                    </div>
                    <p><em>您的一切信息,将都是保密的.</em></p>
                </form>

            </div>
        </div>
	</div>

	<div class="clearFloat"></div>

</div>

<style type="text/css">
div#add{
	text-align:center;
}
div.info{
	text-align:left;
}
div.item{
	margin-bottom: 12px;
}
input.text {
    height: 22px;    
    margin-left: 8px;
    border:1px solid #85C0FF;
}
span.text{
	margin-left: 8px;
}
</style>

<div id="submitDiv" title="获取密码" style="display:none;">
	<div class="info">
		<div>
			请联系客服处理..
		</div><br />
		<div id="returned-msg" style="color:red;"></div>
	
	</div>
</div>

<div id="operate-tip" style="display:none"></div>